#ifndef _INTERFACE_CONSOLE_CONSOLE_SETTINGS_
#define _INTERFACE_CONSOLE_CONSOLE_SETTINGS_

#include <iostream>
#include <string>
using std::cout;
using std::cin;
using std::endl;

namespace science
{
	namespace interface
	{
		namespace console
		{
			class console_settings
			{
			public:
				static void clear_screen()
				{
					system("CLS");
				}

				static char get_char_option(std::string text)
				{
					cout << text;
					char option = '\0'; 
					cin >> option;
					return option;
				}	

				static int get_int_option(std::string text)
				{
					cout << text;
					int option = 0;
					cin >> option;
					return option;
				}

				template<typename T>
				static T get_from_user(std::string text = "Enter : ")
				{
					cout << text;
					T frc;
					cin >> frc;
					return frc;
				}

				static bool do_again(std::string text = "Do it again? ")
				{
					char option = console_settings::get_char_option(text);
					if (option == 'Y' || option == 'y')
						return true;
					else
						return false;
				}
			};
		}
	};
}
#endif